package com.moonee.clapi.commentInterface;

import com.moonee.Entity.Comment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient
public interface CommentInfoInterface {
    
    @RequestMapping("/getCommentByUser")
    public Comment getCommentByUser(@RequestParam("name") String name);
    
    @RequestMapping("/getCommentTimeOut")
    public Comment getCommentTimeOut(@RequestParam("name") String name);
    
    @RequestMapping("/getByHystrix")
    public Comment getByHystrix(@RequestParam("name") String name);
}
